package com.infra.micro.quartz.domain.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@RefreshScope
@Configuration
public class BizConfig {
    @Value("${spring.mail.username}")
    private String from;
    @Value("${biz.quartz-save-execute-result:false}")
    private boolean quartzSaveExecuteResult;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public boolean isQuartzSaveExecuteResult() {
        return quartzSaveExecuteResult;
    }

    public void setQuartzSaveExecuteResult(boolean quartzSaveExecuteResult) {
        this.quartzSaveExecuteResult = quartzSaveExecuteResult;
    }
}
